package com.lynx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author chris.liu
 * @version 4/10/14 9:19 AM
 */
@Controller("projectController")
@RequestMapping(value = "/proj", produces = "text/plain;charset=UTF-8")
public class ProjectController {

	@RequestMapping(value = "/all", method = RequestMethod.GET)
	public ModelAndView projectList(@RequestParam(value = "id", required = false) Integer curPage,
			@RequestParam(value = "id", required = false) Integer pageSize) {
		ModelAndView modelAndView = new ModelAndView();
		modelAndView.setViewName("proj/proj_all");
		return modelAndView;
	}

	@RequestMapping(value = "/detail", method = RequestMethod.GET)
	public ModelAndView projectDetail() {
		ModelAndView modelAndView = new ModelAndView();
		modelAndView.setViewName("proj/proj_detail");
		return modelAndView;
	}
}
